package com.interagriculture.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Journalism)实体类
 *
 * @author makejava
 * @since 2024-11-14 15:52:14
 */
public class Journalism implements Serializable {
    private static final long serialVersionUID = 483962698582834205L;
/**
     * 主键id
     */
    private Integer id;
/**
     * 新闻标题
     */
    private String title;
/**
     * 新闻发布时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
/**
     * 新闻标注
     */
    private String label;
/**
     * 上传之人账号
     */
    private Integer uploader;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getUploader() {
        return uploader;
    }

    public void setUploader(Integer uploader) {
        this.uploader = uploader;
    }

}

